<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广告管理</title>
</head>
<link href="js/layui/css/layui.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="js/layui/css/style.css"/>
<script src="js/loginjs/cunchu.js"></script>
<script src="js/BlogFriend.js" type="text/javascript" charset="utf-8"></script>

<body>
<button type="button" onclick="addOpen()" class="layui-btn layui-btn-normal">添加链接</button>
<table id="demo" lay-filter="test"></table>
<!-- 表格内部自定义模板 -->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="delete">删除</a>
</script>
<div id="popUpdateTest" style="display:none;text-align:center;">
    <div>
            <form class="layui-form layui-from-pane" lay-filter="formTest"
                style="margin-top:20px;text-align:center;">
                <div class="layui-form-item" style="margin-top: 10px;display: none">
                    <label class="layui-form-label">类型</label>
                    <input style="width: 200px;" id="blogroll_id" type="text" name="blogroll_id" placeholder="请输入类型"
                           class="layui-input">
                </div>
                <p></p>
                <div class="layui-form-item" style="margin-top: 10px;">
                    <label class="layui-form-label">联盟论坛</label>
                    <div class="layui-input-block">
                    <input id="blogroll_alliance" type="text" name="blogroll_alliance" placeholder="请输入联盟论坛"
                           class="layui-input">
                    </div>
                </div><p></p>
                <div class="layui-form-item" style="margin-top: 15px;">
                    <label class="layui-form-label">链接地址</label>
                    <div class="layui-input-block">
                    <input type="text" id="blogroll_url" name="blogroll_url" placeholder="请输入链接地址"
                           class="layui-input">
                    </div>
                </div><p></p>
                <div class="layui-form-item"  style="margin-top: 10px;">
                    <label class="layui-form-label">链接说明</label>
                    <div class="layui-input-block">
                    <textarea id="blogroll_explain" name="blogroll_explain"  placeholder="请输入内容" class="layui-textarea"></textarea>
                </div>
                </div>
                <p></p>
            </form>
        <button class="layui-btn" style="width: 250px;height: 32px;margin-top: 12px;" onclick="setFormValue()">确认修改
        </button>
    </div>
</div>
    <div id="popUpdateTest3" style="display:none;text-align:center;">
        <div>
            <form class="layui-form layui-from-pane"
                  style="margin-top:20px;text-align:center;">
                <div class="layui-form-item" style="margin-top: 10px;">
                    <label class="layui-form-label">联盟论坛</label>
                    <div class="layui-input-block">
                    <input id="blogroll_alliance1" type="text" name="blogroll_alliance" placeholder="请输入联盟论坛"
                           class="layui-input">
                    </div>
                </div><p></p>
                <div class="layui-form-item" style="margin-top: 15px;">
                    <label class="layui-form-label">链接地址</label>
                    <div class="layui-input-block">
                    <input type="text" id="blogroll_url1" name="blogroll_url" placeholder="请输入链接地址"
                           class="layui-input">
                    </div>
                </div><p></p>
                <div class="layui-form-item"  style="margin-top: 10px;">
                    <label class="layui-form-label">链接说明</label>
                    <div class="layui-input-block">
                    <textarea id="blogroll_explain1" name="blogroll_explain"  placeholder="请输入内容" class="layui-textarea"></textarea>
                    </div>
                    </div>
                <p></p>
            </form>

            <button class="layui-btn" style="width: 150px;height: 32px;margin-top: 12px;" onclick="saveFriend()">确认添加
            </button>
        </div>
    </div>
    </div>
</body>
</html>
